package com.lysj.admin.master.bussiness.company.invoice.domain;

import com.baomidou.mybatisplus.annotation.TableName;
import com.lysj.admin.master.bussiness.company.CompanyEntity;
import com.lysj.admin.master.common.spring.mpbase.MyEntity;
import com.lysj.admin.master.common.validation.annotation.NotBlank;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Entity;
import javax.persistence.Index;
import javax.persistence.Table;

/**
 * @author Created by drj on 2019-12-23 17:21
 * @description 发票收件人
 */
@Data
@Entity
@EqualsAndHashCode(callSuper = true)
@TableName("lysj_company_invoice_recipient")
@Table(name = "lysj_company_invoice_recipient",
        indexes = {@Index(name = "idx_company_id", columnList = "companyId")})
public class InvoiceRecipient extends CompanyEntity {

    @NotBlank(message = "姓名不能为空")
    private String name;
    @NotBlank(message = "手机号不能为空")
    private String phone;//手机号
    @NotBlank(message = "地址不能为空")
    private String address;//地址
}
